package encapsulation;

public class CarDemo {

	public static void main(String[] args) {
		
		Car car1 = new Car(1111,"BMW","X5","Red",250,2014);
		
		//System.out.println("Initial values of Car details :"+car1.getVinNumber()+" "+car1.getModel()+" "+car1.getMake()+" "+car1.getCarColor()+" "+car1.getMaxSpeed());
		
		car1.accelerateSpeed(30);
		car1.changeColor();
		
		//Setting the values to the variables color and started
			    
		car1.setStarted(true);
		car1.setCarColor("White");
		
		//getting the info about instance variables
		System.out.println("my car Make is " + car1.getMake());
		System.out.println("my car Medel is " + car1.getModel());
	    System.out.println("my car vinNumber is " + car1.getVinNumber());
		System.out.println("my car current speed is "+ car1.getCurrentSpeed());
		System.out.println("my car Maxium Speed  is "+ car1.getMaxSpeed());
		System.out.println("my car color is " + car1.getCarColor());
		System.out.println("my car Gear is " + car1.getGear());
	}

}
